$(function () {
    $.ajax({
        url: "carImageServlet",
        dataType: "json",
        type: "post",
        success: function (img) {
            for (var i = 0; i < shops.length; i++) {
                var img = shops[i].img;
                var $div =$("<img src='image/${shops.img}' height='98' width='98'/>")
                $(".address").append($div);
            }
        }
    });
});